package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资产管理业务对象 oa_admin_asset
 *
 * @author ruoyi
 * @date 2023-08-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaAdminAssetBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 资产类型
     */
    @NotBlank(message = "资产类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String assetType;

    /**
     * 资产编码
     */
    @NotBlank(message = "资产编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String assetCode;

    /**
     * 物品名称
     */
    @NotBlank(message = "物品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 入库数量
     */
    @NotNull(message = "入库数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer inputNum;

    /**
     * 领用数量
     */
    @NotNull(message = "领用数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer useNum;

    /**
     * 剩余数量
     */
    @NotNull(message = "剩余数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer leaveCount;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remarks;


}
